package com.study.system.mapper;

import com.study.system.entity.Finance;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FinanceMapper {

    // 通过社团Id查询社团财务
    List<Finance> selectFinanceInfoByClubId(Integer clubId);

    Integer addFinanceInfo(Integer userId, Finance finance);

    Integer deleteFinanceInfo(Integer financeId);

    Integer updateFinanceInfo(String type, Integer amount, String reason, String time, Integer id);

    List<Finance> searchFinanceInfoByTime(Integer clubId, String time);
}
